﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Runtime.Serialization;  //序列化

[DataContract]//必须申明，否则无法序列化
    public class OnLine
    {
        [DataMember(Name = "computerCount")]//必须申明，否则无法序列化
        private string _computerCount;

        public string ComputerCount
        {
            get { return _computerCount; }
            set { _computerCount = value; }
        }

        [DataMember(Name = "roomName")]//必须申明，否则无法序列化
        private string _roomName;

        public string RoomName
        {
            get { return _roomName; }
            set { _roomName = value; }
        }

        [DataMember(Name = "roomNo")]//必须申明，否则无法序列化
        private string _roomNo;

        public string RoomNo
        {
            get { return _roomNo; }
            set { _roomNo = value; }
        }

    [DataMember(Name = "computerCount1")]//必须申明，否则无法序列化
    private string _computerCount1;

    public string ComputerCount1
    {
        get { return _computerCount1; }
        set { _computerCount1 = value; }
    }

    [DataMember(Name = "roomName1")]//必须申明，否则无法序列化
    private string _roomName1;

    public string RoomName1
    {
        get { return _roomName1; }
        set { _roomName1 = value; }
    }

    [DataMember(Name = "roomNo1")]//必须申明，否则无法序列化
    private string _roomNo1;

    public string RoomNo1
    {
        get { return _roomNo1; }
        set { _roomNo1 = value; }
    }
}

